from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SubmitField, SelectField
from wtforms.validators import InputRequired, DataRequired


class LoginForm(FlaskForm):
    username = StringField('用户名', validators=[InputRequired()])
    password = PasswordField('密码', validators=[InputRequired()])
    status = SelectField('用户类型', choices=[(0, '学生用户'), (1, '教师用户')], coerce=int)
    submit = SubmitField()


class PassForm(FlaskForm):
    mpass = PasswordField('原密码', validators=[InputRequired()])
    newpass = PasswordField('新密码', validators=[InputRequired()])
    renewpass = PasswordField('确认新密码', validators=[InputRequired()])
    submit = SubmitField()


class TeaInfoForm(FlaskForm):
    tea_id = StringField('教师编号', validators=[InputRequired()])
    name = StringField('用户名', validators=[InputRequired()])
    tec_title = StringField('职称', validators=[InputRequired()])
    department = StringField('所处院系', validators=[InputRequired()])
    gender = StringField('性别', validators=[InputRequired()])
    en_year = StringField('入职年份', validators=[InputRequired()])
    birthday = StringField('出生年月', validators=[InputRequired()])
    email = StringField('邮箱', validators=[InputRequired()])
    number = StringField('电话', validators=[InputRequired()])
    pol_status = StringField('政治面貌', validators=[InputRequired()])
    edu_background = StringField('学历', validators=[InputRequired()])
    address = StringField('家庭地址', validators=[InputRequired()])
    submit = SubmitField()


class EvaInfoForm(FlaskForm):
    eva_course = StringField('评教课程')
    eva_teacher = StringField('评教教师')
    eva_student = StringField('评教学生')
    index_one = StringField('指标一')
    index_two = StringField('指标二')
    index_three = StringField('指标三')
    index_four = StringField('指标四')
    opinion = StringField('意见')
    submit = SubmitField()








